package org.christopher.bank.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author christopher
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("loan")
public class Loan extends Model<Loan> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long customerId;

    private String loanNo;

    private Integer loanPurposeId;

    private Integer loanAttribId;

    private BigDecimal loanQuantity;

    private Date createTime;

    private Integer createEmployeeId;

    private Date modifyTime;

    private Integer modifyEmployeeId;

    private Integer status;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
